<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_managers', function (Blueprint $table) {
            $table->id();
            $table->string('wx_group')->default('')->comment('微信结算群');
            $table->string('distance_price')->default('')->comment('价格区间');
            $table->integer('plateform_id')->default(0)->comment('平台类型id');
            $table->integer('customer_id')->default(0)->comment('客户id');
            $table->integer('template_id')->default(0)->comment('模板id');
            $table->integer('department_id')->default(0)->comment('部门id');
            $table->string('shop_name')->default('')->comment('商店名称');
            $table->string('template_name')->default('')->comment('模板名称');
            $table->string('store_category')->default('')->comment('店铺类目');
            $table->tinyInteger('cooperation_status')->default(1)->comment('状态1正常2终止');

            $table->timestamps();
        });
        \DB::statement("ALTER TABLE `shop_profile_templates` comment '商店管理'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_managers');
    }
};
